package com.xxcxcxcx.jobsystem.compat;

import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import squeek.appleskin.api.event.FoodValuesEvent;
import squeek.appleskin.api.food.FoodValues;

public class AppleSkinCompat {
    
    @SubscribeEvent
    public static void onAppleSkinFoodValueEvent(FoodValuesEvent event) {
        Player player = event.player;
        ItemStack stack = event.itemStack;
        event.modifiedFoodValues = new FoodValues(stack.getFoodProperties(player).getNutrition(),stack.getFoodProperties(player).getSaturationModifier());
    }
    
}
